package com.computercourse.order.dao;

import feign.Param;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @description:
 * @author: yuanfeng
 * @date: Created in 2020/2/14 9:37 下午
 * @version: 1.0
 */
@Repository
public interface CicAaskRepositoy {

    //更新任务处理时间
    @Modifying
    @Query("update CicTask t set t.updateTime = :updateTime where t.id = :id ")
     int updateTaskTime(@Param(value = "id") String id, @Param(value = "updateTime") Date updateTime);


}
